package engine.graphics.vfx
{
	import away3d.core.managers.*;
	import engine.core.*;
	import engine.graphics.anim.*;
	import engine.graphics.away3d.*;
	import engine.graphics.particles.*;
	import engine.loaders.*;
	import engine.math.*;
	import game.graphics.shader.*;
	
	public class RxWorldParticleFX extends RxWorldBaseFX
	{
		private var m_particleEmitter:RxParticleEmitter;
		private var m_emitterParams:RxParticleEmitterParams;
		private static var s_pool:RxObjectPool = null;
		
		public function RxWorldParticleFX(emitter:RxParticleEmitter)
		{
			InitParticleFX(emitter);
		}
		
		private function InitParticleFX(emitter:RxParticleEmitter) : void
		{
			this.m_particleEmitter = emitter;
			this.m_emitterParams = null;
		}
		
		public static function CreatePool(initSize:uint, growSize:uint) : void
		{
			var allocFunc:* = function () : Object
			{
				return new RxWorldParticleFX(null);
			};
			s_pool = new RxObjectPool(allocFunc, null, initSize, growSize, RxWorldParticleFX);
		}
	}
}